package com.kaba.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @Author lvmengjie
 * @Date 2021/3/10
 * @Description TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_dept")
@ToString
public class SysDept {

    @TableId(value = "dept_id",type = IdType.AUTO)
    Integer deptId;
    @TableField("parent_id")
    Integer parentId;
    @TableField("ancestors")
    String ancestors;
    @TableField("dept_name")
    String deptName;
    @TableField("order_num")
    Integer orderNum;
    @TableField("leader")
    String leader;
    @TableField("phone")
    String phone;
    @TableField("email")
    String email;
    @TableField("status")
    String status;
    @TableField("del_flag")
    String delFlag;
    @TableField("create_by")
    String createBy;
    @TableField("create_time")
    Date createTime;
    @TableField("update_by")
    String updateBy;
    @TableField("update_time")
    Date updateTime;
    @TableField(exist = false)
    String lable;

    @TableField(exist = false)
    List<SysDept> children;








}
